<script type="text/javascript">
function areyousure()
{
	return confirm('Bạn muốn xóa?');
}
</script>
<div class="btn-group pull-right">
	<a class="btn" href="<?php echo site_url('admin/chuyenkhoan/form'); ?>"><i class="icon-plus-sign"></i> Thêm chứng từ</a>
</div>

<table class="table table-striped">
	<thead>
		<tr>
			<th>Email/Account</th>
			<th>Mã chứng từ</th>
			<th>Nộp từ TK</th>
			<th>Tên người nộp</th>
			<th>Số tiền</th>
			<th>Số điểm</th>
			<th>Ngày nộp</th>						
		</tr>
	</thead>
	
	<?php echo (count($ctu) < 1)?'<tr><td style="text-align:center;" colspan="6">Không có chứng từ nào</td></tr>':''?>
	<?php if($ctu):?>
	<tbody>
		<?php
			foreach($ctu as $obj)
			{?>
			<tr class="gc_row">
				<td>
					<?php echo $obj->ten . '<br/>'.$obj->email; ?>
				</td>
				<td>
					<?php echo $obj->ma_ctu; ?>
				</td>
				<td>
					<?php echo $obj->acc_ref; ?>
				</td>
				<td>
					<?php echo $obj->ho_ten; ?>
				</td>
				<td style="text-align:right">
					<?php echo number_format($obj->so_tien,0,'','.'); ?>
				</td>
				<td style="text-align:right">
					<?php echo $obj->so_diem; ?>
				</td>
				<td>
					<?php echo $obj->ngay_nop; ?>
				</td>				
			</tr>
			<?php
			}
		?>
	</tbody>
	<?php endif;?>
</table>